{layout name="layout/default" /}
<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <div class="panel-lead"><em>{$nav_title.title}</em>{$nav_title.remark}</div>
        <ul class="nav nav-tabs">
                     <li class="active"><a href="#tab_1" data-toggle="tab">基本设置</a></li>
                   <li ><a href="#tab_2" data-toggle="tab">其他设置</a></li> 
        </ul>
    </div>
<div class="panel-body is-dialog">    
<form id="edit-form" class="form-horizontal form-ajax ajax-no-close" role="form" data-toggle="validator" method="post">      
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="tab_1">

    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">节目名称:</label>
        <div class="col-xs-12 col-sm-10">
        <div class="col-xs-12 col-sm-3" style="padding-left:0px;">
         <input type="text" name="tv_name" id="tv_name" value="{$info.tv_name|default=''}" class="form-control">
         </div>        
        <div class="form-inline">
         <div class="col-xs-12 col-sm-2">
 <select name="tv_cid" class="form-control selectpicker" data-rule="required">
 <option value="">选择分类</option>
{volist name="listtv" id="vo"}<option value="{$vo.list_id}" {if isset($info['tv_cid'])} {eq name="vo.list_id" value="$info['tv_cid']"}selected{/eq}{/if}>{$vo.list_name}</option>
{volist name="vo['son']" id="splist"}<option value="{$splist.list_id}" {eq name="splist.list_id" value="$info['tv_cid']"}selected{/eq}>├ {$splist.list_name}</option>{/volist}
{/volist}
</select>
</div>
<div class="col-xs-12 col-sm-2">
<select name="tv_area" id="tv_area" class="form-control selectpicker">{notempty name="info.tv_area"}<option value='{$info.tv_area}'>{$info.tv_area}</option>{/notempty}<option value=''>出产地区</option>{volist name="info.tv_area_list" id="val"} <option value="{$val}">{$val}</option>{/volist}</select></div> </div> 
<span>推送到百度：</span><input name="insertseo" type="checkbox" {empty name="info['tv_id']"}checked{/empty} title="勾选推送到百度" style="border:none;width:auto; position:relative; top:2px;margin-bottom:3px;margin-right:8px;" >       
        </div>
        </div>

    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">节目属性:</label>
        <div class="col-xs-12 col-sm-10" style=" line-height:35px;">
         {volist name=":config('document_position')" id="vo"}<input  style="border:none;width:auto; position:relative; top:2px;margin-bottom:3px;margin-right:8px;{if $key != 1}margin-left:10px;{/if}" type="checkbox" value="{$key}" name="tv_prty[]"   {if  isset($info['tv_prty_array']) && in_array($key,$info.tv_prty_array)}checked="checked"{/if} />{$vo}
            {/volist}
        </div>
    </div> 
     <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">节目API ID:</label>
        <div class="col-xs-12 col-sm-10" style="padding-left:0px;">
        <div class="col-xs-12 col-sm-3">
         <input type="text" name="tv_apiid" value="{$info.tv_apiid|default=''}" class="form-control">
        </div>
         <label for="c-keywords" class="control-label col-xs-12" style="width:auto">节目API类型:</label>
        <div class="col-xs-12 col-sm-1">
         <input type="text" name="tv_apitype" value="{$info.tv_apitype|default=''}" class="form-control" style="text-align:center">
        </div>
         <label for="c-keywords" class="control-label col-xs-12" style="width:auto">节目更新时间:</label>
        <div class="col-xs-12 col-sm-1">
         <input type="text" name="tv_uptime" value="{$info.tv_uptime|default='48'}" class="form-control" style="text-align:center">
        </div> 
        </div>                  
    </div>    
            <div class="form-group">
            <label for="c-image" class="control-label col-xs-12 col-sm-2">节目LOGO:</label>
            <div class="col-xs-12 col-sm-8">
            <div class="form-inline">
                <input id="c-image" class="form-control" size="75" name="tv_pic" type="text" value="{$info['tv_pic']|default=''}">
                <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/*" data-multipart='{"sid":"tv"}' data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> 上传</button></span>
                <ul class="row list-inline plupload-preview" id="p-image"></ul>
            </div>
            </div>
          </div> 
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">节目直播地址:</label>
        <div class="col-xs-12 col-sm-8">
         <input type="text" name="tv_playurl" value="{$info.tv_playurl|default=''}" class="form-control" data-tip="用于前台调用直播">
        </div>
    </div>                
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">节目关键词:</label>
        <div class="col-xs-12 col-sm-8">
         <input type="text" id="keywords" name="tv_keywords" value="{$info.tv_keywords|default=''}" class="form-control" data-tip="用于前台节目页面的关键词"><a href="javascript:;" id="getkeywords" class="btn btn-success btn-add" style="cursor:pointer; position:absolute; right:15px">获取关键词</a>
        </div>
    </div>  
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">节目描述:</label>
        <div class="col-xs-12 col-sm-8">
         <input type="text" name="tv_description" value="{$info.tv_description|default=''}" class="form-control" data-tip="用于前台节目页面的描述">
        </div>
    </div>  
    <div class="form-group" id="tvdata">
    {volist name="info.tv_data" id="tv" key="uu"}
    <tvdata>
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">周期{$uu}</label>
        <div class="col-xs-12 col-sm-10" style="padding-left:0px; margin-bottom:10px;">
        <div class="col-xs-12 col-sm-10">
        <div class="col-xs-12 col-sm-2" style="padding-left:0px;">
        <select name="tv_week[]" id="tv_week" class="form-control selectpicker">{volist name="info.tv_week_list" id="val"}<option value="{$val}" {if condition="$val eq $tv['week']"}selected{/if}>{$i}.{$val}</option>{/volist}</select> </div><label for="c-keywords" class="control-label col-xs-12" style=" width:auto">日期</label> <div class="col-xs-12 col-sm-3">
        <input class="form-control datetimepicker" name="tv_date[]" value="{$tv.date}" placeholder="播出时间" id="createtime" data-date-format="YYYY年MM月DD日" type="datetime">
        
        </div>
        </div>
        <div class="col-xs-12 col-sm-10" style="margin-bottom:8px; margin-top:8px;">
        <label class="control-label" style=" width:auto">注：格式 时间$信息#节目名# 如：05:10$纪录片:#记住乡愁#第二季多个换行</label>
        </div>
         <div class="col-xs-12 col-sm-10" style="margin-bottom:5px;">
        <textarea name='tv_data[]' class="form-control" style=" height:150px;">{$tv.data}</textarea>
        </div>       
        </div>
        </tvdata>
     {/volist}    
    </div> 
     <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">添加板块:</label>
        <div class="col-xs-12 col-sm-9">
        <a href="javascript:;"  class="btn btn-success btn-add addtv"><i class="fa fa-plus"></i> 添加周期信息</a>
        </div>
    </div>
       
       
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">节目介绍:</label>
        <div class="col-xs-12 col-sm-9">
         <textarea class="summernote" name="tv_content" style="height:200px;">{:zanpian_news_img_array($info['tv_content'])}</textarea>
        </div>
    </div> 
    
       <div class="form-group">
                <label for="content" class="control-label col-xs-12 col-sm-2">节目状态:</label>
                <div class="col-xs-12" style="width:auto">
                    <select name="tv_status" class="form-control selectpicker">
                        <option value="1">显示</option>
                        <option value="0" {eq name="info.tv_status" value="0" }selected{/eq}>隐藏</option>
                    </select>
                </div>
            </div>  
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">节目时间:</label>
        <div class="col-xs-12" style="width:auto">
         <input type="text" name="tv_addtime" value="{notempty name="info.tv_addtime"}{$info.tv_addtime|date='Y-m-d H:i:s',###}{else/}{:date('Y-m-d H:i:s',time())}{/notempty}" class="form-control">
        </div>
        <input name="checktime" type="checkbox" style="border:none;width:auto;position:relative; top:5px;" value="1" {notempty name="info.admin_time_edit"}checked{/notempty} title="勾选则使用系统当前时间">
    </div>             
            
     </div>
<div class="tab-pane fade" id="tab_2">
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">节目拼音:</label>
        <div class="col-xs-12 col-sm-3">
         <input type="text" name="tv_letters"  value="{$info.tv_letters|default=''}" class="form-control" data-tip="留空自动获取">
        </div>
    </div>
     <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">节目首字母:</label>
        <div class="col-xs-12 col-sm-8">
         <input type="text" name="tv_letter"  value="{$info.tv_letter|default=''}" class="form-control" data-tip="留空自动获取" style="width:80px;text-align:center">
        </div>
    </div>   
     <div class="form-group">
                <label for="content" class="control-label col-xs-12 col-sm-2">推荐星级:</label>
                <div class="col-xs-12 col-sm-6" style="position:relative; top:5px;">
                 <input name="tv_stars" id="tv_stars" type="hidden" value="{$info.tv_stars|default=''}">{volist name=":admin_star_arr($info.tv_stars)" id="ajaxstar"}<img src="{$config.site.cdnurl}admin/zanpiancms/img/star{$ajaxstar}.gif" id="tv_{$i}" class="addstars">{/volist}
                </div>
            </div>          
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">标题颜色:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="tv_color"  value="{$info.tv_color|default=''}" class="form-control" data-tip="点击选色" style="width:80px;text-align:center" id="color">
        </div>
    </div>
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">总人气:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="tv_hits"  value="{$info.tv_hits|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div>    
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">月人气:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="tv_hits_month"  value="{$info.tv_hits_month|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div> 
       <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">周人气:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="tv_hits_week"  value="{$info.tv_hits_week|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div> 
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">日人气:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="tv_hits_day"  value="{$info.tv_hits_day|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div>         
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">评分值:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="tv_gold"  value="{$info.tv_gold|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div> 
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">评分人数:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="tv_golder"  value="{$info.tv_golder|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div>        
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">顶:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="tv_up"  value="{$info.tv_up|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div>
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">踩:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="tv_down"  value="{$info.tv_down|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div> 
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">独立模版:</label>
        <div class="col-xs-12 col-sm-3">
         <input type="text" name="tv_skin"  value="{$info.tv_skin|default=''}" class="form-control">
        </div>
    </div>          
     </div>     
</div>     
</div>
{notempty name="info.tv_id"} 
<input type="hidden" name="tv_id" value="{$info['tv_id']|default=''}"> 
{/notempty} 
<div class="layui-layer-footer">
<div class="row"><div class="col-xs-2"></div><div class="col-xs-12 col-sm-6">
            <button type="submit" class="btn btn-success btn-embossed">确定</button>
            <button type="reset" class="btn btn-default btn-embossed">重置</button>
            <button onClick="javascript:history.back(-1);return false;" class="btn btn-danger">返回</button>
        </div></div>
        </div>
  </form>      
</div>